<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>DWShortTool Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">ShortSDK </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">bokecc.com</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/dw_compressionAndExportVideo:withOutPath:outputFileType:presetName:didComplete:">+ dw_compressionAndExportVideo:withOutPath:outputFileType:presetName:didComplete:</option>
		
		<option value="//api/name/dw_videoSizeAndTimeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:range:didComplete:">+ dw_videoSizeAndTimeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:range:didComplete:</option>
		
		<option value="//api/name/dw_videoSizeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:didComplete:">+ dw_videoSizeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:didComplete:</option>
		
		<option value="//api/name/dw_videoTimeCropAndExportVideo:withOutPath:outputFileType:presetName:range:didComplete:">+ dw_videoTimeCropAndExportVideo:withOutPath:outputFileType:presetName:range:didComplete:</option>
		
	</optgroup>
	

	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">DWShortTool Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>DWShortTool.h<br />DWShortTool.m</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/dw_compressionAndExportVideo:withOutPath:outputFileType:presetName:didComplete:" title="dw_compressionAndExportVideo:withOutPath:outputFileType:presetName:didComplete:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dw_compressionAndExportVideo:withOutPath:outputFileType:presetName:didComplete:">+&nbsp;dw_compressionAndExportVideo:withOutPath:outputFileType:presetName:didComplete:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>压缩视频</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)dw_compressionAndExportVideo:(NSString *)<em>videoPath</em> withOutPath:(NSString *)<em>outPath</em> outputFileType:(NSString *)<em>outputFileType</em> presetName:(NSString *)<em>presetName</em> didComplete:(void ( ^ ) ( NSError *error , NSURL *compressionFileURL ))<em>completeBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>videoPath</code></th>
						<td><p>视频路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outPath</code></th>
						<td><p>输出路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outputFileType</code></th>
						<td><p>视频格式</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>presetName</code></th>
						<td><p>分辨率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>completeBlock</code></th>
						<td><p>回调的block  compressionFileURL:压缩后的视频URL</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>压缩视频</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">DWShortTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/dw_videoTimeCropAndExportVideo:withOutPath:outputFileType:presetName:range:didComplete:" title="dw_videoTimeCropAndExportVideo:withOutPath:outputFileType:presetName:range:didComplete:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dw_videoTimeCropAndExportVideo:withOutPath:outputFileType:presetName:range:didComplete:">+&nbsp;dw_videoTimeCropAndExportVideo:withOutPath:outputFileType:presetName:range:didComplete:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频时长剪辑 视频区域不变</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)dw_videoTimeCropAndExportVideo:(NSString *)<em>videoPath</em> withOutPath:(NSString *)<em>outPath</em> outputFileType:(NSString *)<em>outputFileType</em> presetName:(NSString *)<em>presetName</em> range:(CMTimeRange)<em>timeRange</em> didComplete:(void ( ^ ) ( NSError *error , NSURL *compressionFileURL ))<em>completeBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>videoPath</code></th>
						<td><p>视频路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outPath</code></th>
						<td><p>视频输出路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outputFileType</code></th>
						<td><p>视频格式</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>presetName</code></th>
						<td><p>分辨率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>timeRange</code></th>
						<td><p>截取视频的时间范围</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>completeBlock</code></th>
						<td><p>回调的block  compressionFileURL:剪辑后的视频URL</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>视频时长剪辑 视频区域不变</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">DWShortTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/dw_videoSizeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:didComplete:" title="dw_videoSizeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:didComplete:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dw_videoSizeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:didComplete:">+&nbsp;dw_videoSizeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:didComplete:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频区域剪裁 视频时长不变</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)dw_videoSizeCropAndExportVideo:(NSString *)<em>videoPath</em> withOutPath:(NSString *)<em>outPath</em> outputFileType:(NSString *)<em>outputFileType</em> presetName:(NSString *)<em>presetName</em> size:(CGSize)<em>videoSize</em> point:(CGPoint)<em>videoPoint</em> shouldScale:(BOOL)<em>shouldScale</em> didComplete:(void ( ^ ) ( NSError *error , NSURL *compressionFileURL ))<em>completeBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>videoPath</code></th>
						<td><p>视频路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outPath</code></th>
						<td><p>视频输出路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outputFileType</code></th>
						<td><p>视频格式</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>presetName</code></th>
						<td><p>分辨率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>videoSize</code></th>
						<td><p>剪裁区域</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>videoPoint</code></th>
						<td><p>剪裁起点</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>shouldScale</code></th>
						<td><p>是否拉伸 YES拉伸 NO不拉伸 剪裁黑背景</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>completeBlock</code></th>
						<td><p>剪裁完成后的回调</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>视频区域剪裁 视频时长不变</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">DWShortTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/dw_videoSizeAndTimeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:range:didComplete:" title="dw_videoSizeAndTimeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:range:didComplete:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dw_videoSizeAndTimeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:range:didComplete:">+&nbsp;dw_videoSizeAndTimeCropAndExportVideo:withOutPath:outputFileType:presetName:size:point:shouldScale:range:didComplete:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频区域兼时长剪裁</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (void)dw_videoSizeAndTimeCropAndExportVideo:(NSString *)<em>videoPath</em> withOutPath:(NSString *)<em>outPath</em> outputFileType:(NSString *)<em>outputFileType</em> presetName:(NSString *)<em>presetName</em> size:(CGSize)<em>videoSize</em> point:(CGPoint)<em>videoPoint</em> shouldScale:(BOOL)<em>shouldScale</em> range:(CMTimeRange)<em>timeRange</em> didComplete:(void ( ^ ) ( NSError *error , NSURL *compressionFileURL ))<em>completeBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>videoPath</code></th>
						<td><p>视频路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outPath</code></th>
						<td><p>视频输出路径</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>outputFileType</code></th>
						<td><p>视频格式</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>presetName</code></th>
						<td><p>分辨率</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>videoSize</code></th>
						<td><p>剪裁区域</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>videoPoint</code></th>
						<td><p>剪裁起点</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>shouldScale</code></th>
						<td><p>是否拉伸 YES拉伸 NO不拉伸 剪裁黑背景</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>timeRange</code></th>
						<td><p>截取视频的时间范围</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>completeBlock</code></th>
						<td><p>剪裁完成后的回调</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>视频区域兼时长剪裁</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">DWShortTool.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2018 bokecc.com. All rights reserved. Updated: 2018-07-10</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>